/**
 * @file   1116.cpp
 * @author Shuang Hu <hsmath@ubuntu>
 * @date   Mon May 31 18:27:49 2021
 * 
 * @brief  PAT 1116:Let's C!
 * 
 * 
 */
#include<iostream>
#include<map>
#include<string>
#include<cmath>
using namespace std;
void checkprime(int c){
    for(int i=2;i<=sqrt(c);i++){
	if(c%i==0){
	    cout<<"Chocolate"<<endl;
	    return;
	}
    }
    cout<<"Minion"<<endl;
    return;
}
int main(){
    int N;
    cin>>N;
    map<string,int> Rank;
    map<string,bool> isvisited;
    for(int i=1;i<=N;i++){
	string s;
	cin>>s;
	Rank[s]=i;
	isvisited[s]=false;
    }
    int checknum;
    cin>>checknum;
    for(int i=0;i<checknum;i++){
	string s;
	cin>>s;
	if(isvisited[s]==true){
	    cout<<s<<": Checked"<<endl;
	}else if(Rank.count(s)==0){
	    cout<<s<<": Are you kidding?"<<endl;
	}else if(Rank[s]==1){
	    cout<<s<<": Mystery Award"<<endl;
	    isvisited[s]=true;
	}else{
	    isvisited[s]=true;
	    int rk=Rank[s];
	    cout<<s<<": ";
	    checkprime(rk);
	}
    }
}
